﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System;

namespace Agile.Models
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("rbac_role")]
    [Description("角色表")]
    public partial class Role : Entity, ITenant, ISoftDelete
    {
        public Role()
        {
            Name = string.Empty;
            Status = 0;
            CreateId = string.Empty;
            TypeName = string.Empty;
            TypeId = string.Empty;
        }
        /// <summary>
        /// 所属租户
        /// </summary>
        [Description("所属租户")]
        public virtual string TenantId { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Description("角色名称")]
        public string Name { get; set; }
        /// <summary>
        /// 当前状态
        /// </summary>
        [Description("当前状态")]
        public int Status { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        [Description("创建人ID")]
        public string CreateId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Description("分类名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        [Description("分类ID")]
        public string TypeId { get; set; }
    }
}